# -*- coding: utf-8 -*-

from django.urls import path
from . import  views
from .views import getIdex,temIdex,Regist

urlpatterns = [
    path('get_many/',views.getMany),
    path('get_url/<str:name>/<int:age>',views.getUrl),
    path('class_index/<str:name>/<int:age>',getIdex.as_view(),name="class_class"),
    # 模板练习
    path('tem_index/<str:name>',temIdex.as_view(),name="temIdex"),
    # 表单练习
    path('regist/',Regist.as_view(),name="regist"),
    path('list/',views.book_list),
    path('detail/<int:book_id>',views.book_detail,name='book_detail'),
    path('getid/',views.get_id),
    path('dbtest/',views.index),
    path('dbindex/',views.sqIndex,name='index'),
    path('delete_book/',views.delete_book,name='delete_book'),
    path('add_book/',views.add_book,name="add_book"),
    path('orm_index/',views.ormIdex),
    path('method_index/',views.methon_index),
    path('add_article/',views.add_article),
    path('json_view/',views.jsonresponse_view),
    path('csv_view/',views.csv_view),
    path('template_view/',views.template_csv_view),
    path('export_csv/',views.export_users_csv),
    path('export_xls/',views.export_users_xls),
    path('book_list_view/',views.AddBookView.as_view(),name='book_list')

]